package cn.codexin.wechatofficial.exception;

/**
 * Created by xinGao 2020/3/19
 */

public class WeChatException extends RuntimeException {
    private Integer code;
    private String message;
    public WeChatException(IExceptionCode exceptionCode){
        this.code = exceptionCode.getCode();
        this.message = exceptionCode.getMessage();
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
